package com.woniuxy.mapper;

import com.woniuxy.entity.WebSocketMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WebSocketMessageMapper {
    Integer add(WebSocketMessage webSocketMessage);
    List<WebSocketMessage> queryByPhone(@Param("senderPhone") String senderPhone, @Param("receiverPhone") String receiverPhone);
    Integer updateMessageRead(@Param("senderPhone") String senderPhone, @Param("receiverPhone") String receiverPhone);
}
